package com.pengshun.modules.api.user.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pengshun.modules.api.coal.validator.First;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data

public class UserDriverDto {

    @NotNull(message = "ownerDrivingId不能为空", groups = {First.class})
    private Long ownerDrivingId;
    private Long carDrivingId;
    /** userid(发起人) */
    private Long drivingUserId;
    /** (确认人id)  */
    private Long carUserId;
    private Long carOwnerId;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkTime;
    private Integer status;
    private Integer type;
    private Integer freeze;

    private String phone;
    private String typeName;
    private String name;
    private String carLoad;
    private String avatarName;
    private String carNumber;
    private String showContent;

    private Integer isShow;

    List<CarOwnerDto> carOwnerDtos;
}
